from tkinter import *
window = Tk()
v = IntVar()
Checkbutton(window,text = "选我试试",variable = v).pack()
Label(window,textvariable = v).pack()
mainloop()
